<?php

namespace App\Http\Controllers\Auth;

use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Exception;
use Login;

class UserController extends Controller
{
    /**
    * 
    *
    * @return array
    */
    public function index(Request $request)
    {
        return view( '/login/login' );
    }

    /**
    * 
    *
    * @return array
    */
    public function registe(Request $request)
    {
        $uid = isset($request['uid']) ? $request['uid'] : '';
        $name = isset($request['name']) ? $request['name'] : '';
        $email = isset($request['email']) ? $request['email'] : '';
        $password = isset($request['password']) ? $request['password'] : '';

        $add = Login::registe(['uid'=>$uid, 'name'=>$name, 'email'=>$email, 'password'=>$password]);
        dd($add);
    }
}
